//
//  TriedNode.swift
//  Chapter3LinkedList
//
//  Created by TRS-Mobile on 2021/9/2.
//

import Foundation

class TriedNode<Key: Hashable> {
    var key: Key?
    weak var parent: TriedNode?
    var children: [Key: TriedNode] = [:]
    var isTerminating = false
    
    init(key: Key?, parent: TriedNode?) {
        self.key = key
        self.parent = parent
    }
    
}


